package demo_8_IO;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class file {
	public static void main(String[] args) throws FileNotFoundException {
		FileInputStream fis=new FileInputStream("D://wl_system.log");
		StringBuilder sb=new StringBuilder();
		byte[] buff=new byte[1024];
		int temp;
		try {
			while ((temp=fis.read(buff))!=-1) {
				String str=new String(buff,0,temp);
				System.out.print(str);
			}
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		finally{
			try {
				fis.close();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		
			
		}
	}
}
